from GuoQing10_1.zy2.Page import Page
from GuoQing10_1.zy2.Page2 import Page2
import pytest,time
from selenium import webdriver
import yaml

def read():
    with open(r'E:\gaowu_2303A\GuoQing10_1\zy2\jx.yaml','r',encoding='utf-8') as f:
        return yaml.safe_load(f)

a=read()
@pytest.fixture
def driver() ->None:
    driver = webdriver.Edge()
    driver.maximize_window()
    yield driver
    driver.implicitly_wait(10)
    driver.quit()

@pytest.mark.parametrize('jx',a)
def test_001(driver,jx):
    po =  Page(driver)
    po.test_login_01(jx)

def test_002(driver):

    po2 =  Page2(driver)
    po2.test_sousuo_02()



